<form id="splitPage" class="form-horizontal" action="${cxt!}/jf/wx/location" method="POST">
	
	<div>
		<ul class="breadcrumb">
			<li>
				<a href="#" onclick="common_ajax.ajaxMainPanel('/jf/wx/index/content');">主页</a> <span class="divider">/</span>
			</li>
			<li>
				<a href="#">位置管理</a>
			</li>
		</ul>
	</div>
	
	<div class="row-fluid sortable">
		<div class="box span12">
			<div class="box-header well" data-original-title>
				<h2><i class="icon-edit"></i> 位置查询</h2>
				<div class="box-icon">
					<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-down"></i></a>
					<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
				</div>
			</div>
			<div class="box-content">
				<fieldset>
				  	<div class="control-group">
						<label class="control-label">open_id标示</label>
						<div class="controls">
					  		<input class="form-control" type="text" name="_query.open_id" value='${escapeXml(paramMap["_query.open_id"])}' maxlength="40" >
						</div>
				  	</div>
					
				  	<div class="form-actions">
						<button type="button" class="btn btn-primary" onclick='ajaxForm("content", "splitPage");'>查询</button>
						<button type="reset" class="btn">清除</button>
				  	</div>
				</fieldset>
			</div>
		</div><!--/span-->
	</div><!--/row-->
	
	<div class="row-fluid sortable">
		<div class="box span12">
			
			<div class="box-header well" data-original-title>
				<h2><i class="icon-user"></i> 位置列表</h2>
				<div class="box-icon">
					<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a> 
					<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
				</div>
			</div>
			
			<div class="box-content">
				<table class="table table-striped table-bordered bootstrap-datatable ">
					<thead>
						<tr>
							<th onclick="common_splitPage.orderbyFun('mainPanel', 'splitPage', 'id')">
								标示 ${orderBy("open_id")}
	      					</th>
							<th onclick="common_splitPage.orderbyFun('mainPanel', 'splitPage', 'name')">
								lng ${orderBy("lng")}
	      					</th>
							<th onclick="common_splitPage.orderbyFun('mainPanel', 'splitPage', 'count')">
								lat ${orderBy("lat")}
							</th>
							<th onclick="common_splitPage.orderbyFun('mainPanel', 'splitPage', 'count')">
								bd09_lng ${orderBy("bd09_lng")}
							</th>
							<th onclick="common_splitPage.orderbyFun('mainPanel', 'splitPage', 'count')">
								bd09_lat ${orderBy("bd09_lat")}
							</th>
							<th onclick="common_splitPage.orderbyFun('mainPanel', 'splitPage', 'count')">
								创建时间 ${orderBy("createdate")}
							</th>
							<th width="160">操作</th>
						</tr>
					</thead>
					<tbody>
						<%
							var delete = authUrl("/jf/wx/location/delete");
						%>
						<% for(location in splitPage.list){ %>
							<tr>
								<td>${escapeXml(location.open_id!) }</td>
								<td>${escapeXml(location["lng"]!) }</td>
								<td class="center"><span class="label label-success">${escapeXml(location["lat"]!) }</span></td>
								<td>${escapeXml(location["bd09_lng"]!) }</td>
								<td>${escapeXml(location["bd09_lat"]!) }</td>
								<td>${location.createdate !, dateFormat="yyyy-MM-dd HH:mm:ss:SSS"}</td>
								<td class="center">
									<% if(delete == true){ %>
										<a class="btn btn-success" href="#" onclick="common_ajax.ajaxMainPanel('/jf/wx/location/delete/${escapeXml(location.ids!)}');"> <i class="icon-zoom-in icon-white"></i> 查看</a>
									<% } %>
								</td>
							</tr>
						<% } %>
					</tbody>
				</table>
				<div id="splitPageDiv" class="pagination pagination-centered">
					<% include("/common/splitPage.html", {"divId" : "mainPanel", "formId" : "splitPage", "splitPageDiv" : "splitPageDiv"}){} %>
				</div>
			</div>
			
		</div>
		<!--/span-->
	
	</div>
	<!--/row-->

</form>